package com.lili.collection.restful.config;

import com.lili.collection.core.config.OutputConfig;
import com.lili.collection.core.domain.CollectCommonConfig;
import com.lili.collection.core.plugins.OutputPlugin;
import com.lili.collection.core.support.ConfigFieldDef;
import com.lili.collection.restful.plugins.RestfulOutputPlugin;
import lombok.Data;

/**
 *描述: http接口输入配置
 *@date: 2023/10/13  11:23
 *@author: lili
 */
@Data
public class RestfulOutputConfig extends CollectCommonConfig implements OutputConfig {

    /**
     * 接口配置数据
     */
    @ConfigFieldDef(type = ConfigFieldDef.Type.STRING, required = true)
    private String interfaceConfig;

    @Override
    public OutputPlugin getPlugin() {
        return new RestfulOutputPlugin();
    }
}